package my.bean;

import java.util.Date;

/**
 * database table : users
 * bean : user 
 * attribute : id,account,password,email,phone,regDate
 * @author slim
 *
 */

public class User {
	private int id;
	private String account;
	private String password;
	private String email;
	private String phone;
	private Date regDate;

	public User(int id, String account, String password, String email, String phone, Date regDate) {
		super();
		this.id = id;
		this.account = account;
		this.password = password;
		this.email = email;
		this.phone = phone;
		this.regDate = regDate;
	}

	public User(String account, String password, String email, String phone, Date regDate) {
		super();
		this.account = account;
		this.password = password;
		this.email = email;
		this.phone = phone;
		this.regDate = regDate;
	}

	public User() {

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

}
